package com.zzg.member.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zzg.member.jooq.api.MemberService;
import com.zzg.member.jooq.entity.Member;


@RestController
@RequestMapping("/member")
public class MemberController {
	
	@Reference(version="1.0.0")
	protected MemberService memberService;
	
	@RequestMapping(value = "/get", method = RequestMethod.GET)
	public Member get(@RequestParam(value = "id",required = true) String id){
		return memberService.get(id);
	}
}
